package com.bingxue.edu.management.education.model.resp;

import com.bingxue.edu.management.education.model.entity.EnrollChangeRecord;
import com.bingxue.edu.management.education.model.entity.Lesson;
import com.bingxue.edu.management.shop.model.entity.FinAccount;
import com.bingxue.edu.management.shop.model.entity.Order;
import com.mybatisflex.annotation.RelationManyToOne;
import com.mybatisflex.annotation.TableRef;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "退班退课详情信息")
@TableRef(EnrollChangeRecord.class)
public class ClassCancelDetailResp extends ClassCancelResp {

    @Schema(description = "订单信息")
    private Order order;

    @Schema(description = "财务账户")
    private FinAccount orderFinAccount;

    @Schema(description = "原始课次信息")
    private List<Lesson> originalLesson;

    @Schema(description = "创建人名称")
    @RelationManyToOne(selfField = "createUser", targetTable = "base_employee", targetField = "id", valueField = "name")
    private String createUserName;

}
